package com.lmk.feign;


import com.lmk.domain.Store;
import com.lmk.utils.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="store-service",fallbackFactory =StoreServiceFallbackFactory.class)
public interface StoreService {
    @PostMapping("/store/add")
    AjaxResult add(@RequestBody Store store);
}
